<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>style上的before和after</title>
</head>
<body>

<div>内联样式不能使用:xxx的形式添加伪元素</div>
<div style=":before{display: block;content: '*';position: absolute;background-color: #444444}">
<!--<div style="*:before{display: block;content: '*';position: absolute;background-color: #444444}">-->
    <div style="background-color: coral;height: 5rem;width: 12rem"></div>
</div>
</body>
</html>